package gof_003_行为型_Behavioral.gof_005_责任链_ChainOfResponsibility.gof_002_Chain;


public abstract class Leader {
    private String leaderName;
    private Leader newLeader;

    public Leader(String leaderName) {
        this.leaderName = leaderName;
    }

    public String getLeaderName() {
        return leaderName;
    }

    public void setLeaderName(String leaderName) {
        this.leaderName = leaderName;
    }

    public Leader getNewLeader() {
        return newLeader;
    }

    public void setNewLeader(Leader newLeader) {
        this.newLeader = newLeader;
    }

    /**
     * 让子类重写
     * @return
     */
    public abstract String handle(AskForLeave askForLeave);
}